import App from './App'
import {post,img,key,page,address,url} from './config/index.js'
import VueClipBoard from 'vue-clipboard2'

import uView from '@/uni_modules/uview-ui'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

Vue.use(VueClipBoard)
Vue.use(uView)
Vue.prototype.$httpRequest = post;
Vue.prototype.$imgUrl = img;
Vue.prototype.$pages = page;
Vue.prototype.$baseUrl = url;
Vue.prototype.$key = key;

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif